package com.fulu.javabase.collection;

import java.util.*;

public class CollectionTest {
    public static void main(String[] args) {
        List<String> a = new ArrayList<>();
        a.add("a");
        a.add("b");
        a.add("c");
        a.add("d");
        Set<String> b = new HashSet<>(a);
        System.out.println(Arrays.toString(a.toArray()));
    }

}
